package com.example.demovalue.pk6;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
//@Configuration(proxyBeanMethods = false)
@ConfigurationProperties(prefix = "myapp")
public class NestAppBean {
    private String name;
    private String owner;
    private Integer port;
    private Security security;

    @Override
    public String toString() {
        return "NestAppBean{" +
                "name='" + name + '\'' +
                ", owner='" + owner + '\'' +
                ", port=" + port +
                ", security=" + security +
                '}';
    }
}
